On the Problem of Computing the Well-Founded Semantics
نویسندگان
چکیده
The well-founded semantics is one of the most widely studied and used semantics of logic programs with negation. In the case of finite propositional programs, it can be computed in polynomial time, more specifically, in O(|At(P)|×size(P)) steps, where size(P) denotes the total number of occurrences of atoms in a logic program P. This bound is achieved by an algorithm introduced by Van Gelder and known as the alternating-fixpoint algorithm. Improving on the alternating-fixpoint algorithm turned out to be difficult. In this paper we study extensions and modifications of the alternating-fixpoint approach. We then restrict our attention to the class of programs whose rules have no more than one positive occurrence of an atom in their bodies. For programs in that class we propose a new implementation of the alternating-fixpoint method in which false atoms are computed in a top-down fashion. We show that our algorithm is faster than other known algorithms and that for a wide class of programs it is linear and so, asymptotically optimal.
منابع مشابه
On the Problem of Computing Ambiguity Propagation and Well-Founded Semantics in Defeasible Logic
In this paper we present the well founded variants of ambiguity blocking and ambiguity propagating defeasible logics. We also show how to extend SPINdle, a state of the art, defeasible logic implementation to handle all such variants of defeasible logic.
متن کاملEditorial: Programming with Answer Sets
The search for an appropriate characterization of negation as failure in logic programs in the mid 1980s led to several proposals. Amongst them the stable model semantics – later referred to as answer set semantics, and the well-founded semantics are the most popular and widely referred ones. According to the latest (September 2002) list of most cited source documents in the CiteSeer database t...
متن کاملComputing the Well-Founded Semantics for Constraint Extensions of Datalog
We present a new technique for computing the well-founded semantics for constraint extensions of Datalog :. The method is based on tabulated resolution enhanced with a new reenement strategy for deriving negative conclusions. This approach leads to an eecient and terminating query evaluation algorithm that preserves the goal-oriented nature of the resolution based methods.
متن کاملAggregation and Well-Founded Semantics
Set-grouping and aggregation are powerful non-monotonic operations of practical interest in database query languages. We consider the problem of expressing aggregation via negation as failure (NF). We study this problem in the framework of partial-order clauses introduced in JOM95]. We show a translation of partial-order programs to normal programs that is very natural: Any cost-monotonic parti...
متن کاملEfficient Implementation of the Well-founded and Stable Model Semantics
An implementation of the well-founded and stable model semantics for range-restricted function-free normal programs is presented. It includes two modules: an algorithm for implementing the two semantics for ground programs and an algorithm for computing a grounded version of a range-restricted function-free normal program. The latter algorithm does not produce the whole set of ground instances ...
متن کاملEecient Implementation of the Well- Founded and Stable Model Seman- Tics
An implementation of the well-founded and stable model semantics for range-restricted function-free normal programs is presented. It includes two modules: an algorithm for implementing the two semantics for ground programs and an algorithm for computing a grounded version of a range-restricted function-free normal program. The latter algorithm does not produce the whole set of ground instances ...
متن کامل